package com.stlm2.dems.entity;

/**
 * Created by apple on 2017/10/12.
 */
public enum ValueAddedServicesType {

    ByNext(1) {
        public String toString() {
            return "按次服务";
        }
    },
    ByDate(2) {
        public String toString() {
            return "按月服务";
        }
    };
    private final int val;

    ValueAddedServicesType(int n) {
        val = n;
    }

    public int getIntValue() {
        return val;
    }

    public static ValueAddedServicesType getByIntValue(int n) {
        switch (n) {
            case 1:
                return ByNext;
            case 2:
                return ByDate;

            default:
                return null;
        }
    }
}
